<?php
/*
 * @Author: CHINAKAIYUAN<sunkaiyuan@namenode.cn>
 * @Date: 2022-02-04 16:53:56
 * @LastEditTime: 2023-11-11 15:35:21
 * @LastEditors: 孙开源 && sunkaiyuan@namenode.cn
 * @Description: 
 */

namespace App\Http\Services\Pro;


use App\Http\Services\Service;
use App\Repositories\ProProcessProRepository;
use Illuminate\Support\Facades\DB;

/** 
 * @property ProProcessProRepository $repository 
 * @author sunkaiyuan
 */
class ProcessProService extends Service
    {
    public function __construct(ProProcessProRepository $repository)
        {
        $this->repository = $repository;
        }

    public function list()
        {
        // DB::enableQueryLog();
        $data = $this->repository->condition(request())
            ->orderBy("billdate")
            ->where("quantity", ">", 0)
            ->getGrid();
        // dd(DB::getQueryLog());
        return $data;
        }

    }